package com.ucw.ucwclient.dal.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.ucw.ucwclient.dal.dataobject.UCityReply;
import com.ucw.ucwclient.dal.search.NormalSearch;

@Repository
public interface UCityReplyMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(UCityReply record);

	int insertSelective(UCityReply record);

	UCityReply selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(UCityReply record);

	int updateByPrimaryKey(UCityReply record);

	int deleteReply(@Param("id") Integer id, @Param("userId") Long userId);

	List<UCityReply> selectByCmtID(@Param("cmtId") Integer id, @Param("limit") int limit);

	List<UCityReply> selectByPageSearch(@Param("search") NormalSearch search);
}